/* 
 * File:   multihierarchy_class.cpp
 * Author: tandaica0612
 *
 * Created on November 23, 2008, 12:10 AM
 */

#include <stdlib.h>
#include <iostream>
using namespace std;
/*
 * 
 */
class A{
public:
    void printit(){
        cout << "This is lop A\n";
    }
};
class B{
public:
    void printit(){
        cout << "This is lop B\n";
    }
};
class C:public A,public B{
    //Khong override method printit tu` 2 lop base
    //thi` buoc. khi su? dung. phai? dung` toan' tu? ::
};
class D:public A,public B{
public:
    void printit(){
        cout << "This is lop D\n";
    }
};
/*
int main(int argc, char** argv) {
    C c;
    c.A::printit();
    c.B::printit();
    cout << endl;
    D d;
    d.printit();
    d.A::printit();
    d.B::printit();
    return (EXIT_SUCCESS);
}**/
/*
This is lop A
This is lop B

This is lop D
This is lop A
This is lop B
 **/
